package com.rpj.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@Entity
@Table(name = "books")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})
public class Book {
	
	@Id
	private String bookid;//图书编号
	private String bookname;//图书名字
	private String bookauthor;//图书作者
	private String bookpress;//出版社
	private String booknum;//图书数量
	private String bookcate;//图书类别
	private String bookmessage;//图书信息
	private String bookprice;//图书价格
	private String bookaddress;//存放地址ַ
	private String onlinenum;//现在馆内数量
	private String borrownum;//被借阅次数
	private String bookdata1;//保留字段
	private String bookdata2;//�����ֶ�int
	private String bookdata3;//�����ֶ�varchar
	private String bookdata4;//�����ֶ�varchar
	public String getBookid() {
		return bookid;
	}
	public void setBookid(String bookid) {
		this.bookid = bookid;
	}
	public String getBookname() {
		return bookname;
	}
	public void setBookname(String bookname) {
		this.bookname = bookname;
	}
	public String getBookauthor() {
		return bookauthor;
	}
	public void setBookauthor(String bookauthor) {
		this.bookauthor = bookauthor;
	}
	public String getBookpress() {
		return bookpress;
	}
	public void setBookpress(String bookpress) {
		this.bookpress = bookpress;
	}
	public String getBooknum() {
		return booknum;
	}
	public void setBooknum(String booknum) {
		this.booknum = booknum;
	}
	public String getBookcate() {
		return bookcate;
	}
	public void setBookcate(String bookcate) {
		this.bookcate = bookcate;
	}
	public String getBookmessage() {
		return bookmessage;
	}
	public void setBookmessage(String bookmessage) {
		this.bookmessage = bookmessage;
	}
	public String getBookprice() {
		return bookprice;
	}
	public void setBookprice(String bookprice) {
		this.bookprice = bookprice;
	}
	public String getBookaddress() {
		return bookaddress;
	}
	public void setBookaddress(String bookaddress) {
		this.bookaddress = bookaddress;
	}
	public String getOnlinenum() {
		return onlinenum;
	}
	public void setOnlinenum(String onlinenum) {
		this.onlinenum = onlinenum;
	}
	public String getBorrownum() {
		return borrownum;
	}
	public void setBorrownum(String borrownum) {
		this.borrownum = borrownum;
	}
	public Book(String bookid, String bookname, String bookauthor, String bookpress, String booknum, String bookcate,
			String bookmessage, String bookprice, String bookaddress, String onlinenum, String borrownum) {
		super();
		this.bookid = bookid;
		this.bookname = bookname;
		this.bookauthor = bookauthor;
		this.bookpress = bookpress;
		this.booknum = booknum;
		this.bookcate = bookcate;
		this.bookmessage = bookmessage;
		this.bookprice = bookprice;
		this.bookaddress = bookaddress;
		this.onlinenum = onlinenum;
		this.borrownum = borrownum;
	}
	public Book() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Book [bookid=" + bookid + ", bookname=" + bookname + ", bookauthor=" + bookauthor + ", bookpress="
				+ bookpress + ", booknum=" + booknum + ", bookcate=" + bookcate + ", bookmessage=" + bookmessage
				+ ", bookprice=" + bookprice + ", bookaddress=" + bookaddress + ", onlinenum=" + onlinenum
				+ ", borrownum=" + borrownum + "]";
	}

}
